package com.sky.mapper.common;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:JinFeng
 * @Date: 2025/06/13 21:27
 * @Description:
 */
@Mapper
public interface DishFlavorMapper {
    /*
    * 批量增加
    * @param dishFlavorList
    * @return
    * */
    int insertBatch(@Param("flavors")List<DishFlavor> dishFlavorList);

    int deleteByDishIds(@Param("dishIds")List<Long> ids);

    int deleteByDishId(Long dishId);
}
